<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Dokumentacja pliku timers.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja pliku timers.h</h1><h3>(r58/r57)</h3>
<p>Plik nagłówkowy - Implementacja timerów.  
<a href="#_details">Więcej...</a></p>

<p><a href="timers_8h_source.html">Idź do kodu źródłowego tego pliku.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Struktury danych</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTIMER.html">TIMER</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Struktura przechowywująca dane o timerze.  <a href="structTIMER.html#_details">Więcej...</a><br/></td></tr>
<tr><td colspan="2"><h2>Definicje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#ad088820886c468f869321a07eb441106">TIMERS_FLAG_BLOCKED</a>&nbsp;&nbsp;&nbsp;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#a7932ea90c9e2fdd99daca2372637bcfa">TIMERS_FLAG_BUSY</a>&nbsp;&nbsp;&nbsp;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#a6109c5ccb58f45134eeccb726cc20e51">TIMERS_FLAG_CONFIG_MASK</a>&nbsp;&nbsp;&nbsp;0x0F</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#a0dae7b9512b88c8c551f35f58a97f77e">TIMERS_FLAG_WDAY_MASK</a>&nbsp;&nbsp;&nbsp;0x0E</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#a932d654de4858c2e1c2a75600328654d">TIMERS_HOUR_MINUTES</a>&nbsp;&nbsp;&nbsp;60</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#a0201e1cc91467fb5423b05a8f4fa9210">TIMERS_MAX_WDAY</a>&nbsp;&nbsp;&nbsp;7</td></tr>
<tr><td colspan="2"><h2>Funkcje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#a9b0bb46d35a99945a615b9f660c7eb6c">just_in_time</a> (struct <a class="el" href="structMIT.html">MIT</a> *, struct <a class="el" href="structMIT.html">MIT</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#a7435e59360b44d575bba33297a8c2655">timers_process</a> (void)</td></tr>
<tr><td colspan="2"><h2>Zmienne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structTIMER.html">TIMER</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timers_8h.html#aff3c8ebb2c4bf09c591ab3333a71f326">timers</a> [TIMERS_NUM]</td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<p>Plik nagłówkowy - Implementacja timerów. </p>
<hr/><h2>Dokumentacja definicji</h2>
<a class="anchor" id="ad088820886c468f869321a07eb441106"></a><!-- doxytag: member="timers.h::TIMERS_FLAG_BLOCKED" ref="ad088820886c468f869321a07eb441106" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMERS_FLAG_BLOCKED&nbsp;&nbsp;&nbsp;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Flaga blokady. </p>

</div>
</div>
<a class="anchor" id="a7932ea90c9e2fdd99daca2372637bcfa"></a><!-- doxytag: member="timers.h::TIMERS_FLAG_BUSY" ref="a7932ea90c9e2fdd99daca2372637bcfa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMERS_FLAG_BUSY&nbsp;&nbsp;&nbsp;4</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Flaga zajetości. </p>

</div>
</div>
<a class="anchor" id="a6109c5ccb58f45134eeccb726cc20e51"></a><!-- doxytag: member="timers.h::TIMERS_FLAG_CONFIG_MASK" ref="a6109c5ccb58f45134eeccb726cc20e51" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMERS_FLAG_CONFIG_MASK&nbsp;&nbsp;&nbsp;0x0F</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Maska flag konfiguracyjnych. </p>

</div>
</div>
<a class="anchor" id="a0dae7b9512b88c8c551f35f58a97f77e"></a><!-- doxytag: member="timers.h::TIMERS_FLAG_WDAY_MASK" ref="a0dae7b9512b88c8c551f35f58a97f77e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMERS_FLAG_WDAY_MASK&nbsp;&nbsp;&nbsp;0x0E</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Maska dni tygodnia </p>

</div>
</div>
<a class="anchor" id="a932d654de4858c2e1c2a75600328654d"></a><!-- doxytag: member="timers.h::TIMERS_HOUR_MINUTES" ref="a932d654de4858c2e1c2a75600328654d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMERS_HOUR_MINUTES&nbsp;&nbsp;&nbsp;60</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Liczba minut w godzinie </p>

</div>
</div>
<a class="anchor" id="a0201e1cc91467fb5423b05a8f4fa9210"></a><!-- doxytag: member="timers.h::TIMERS_MAX_WDAY" ref="a0201e1cc91467fb5423b05a8f4fa9210" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMERS_MAX_WDAY&nbsp;&nbsp;&nbsp;7</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Maksymalna wartość dla WDAY </p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji</h2>
<a class="anchor" id="a9b0bb46d35a99945a615b9f660c7eb6c"></a><!-- doxytag: member="timers.h::just_in_time" ref="a9b0bb46d35a99945a615b9f660c7eb6c" args="(struct MIT *, struct MIT *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t just_in_time </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structMIT.html">MIT</a> *&nbsp;</td>
          <td class="paramname"> <em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structMIT.html">MIT</a> *&nbsp;</td>
          <td class="paramname"> <em>to</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sprawdza warunek włączenia timera. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>from</em>&nbsp;</td><td>czas początkowy w formacie <a class="el" href="structMIT.html">MIT</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>to</em>&nbsp;</td><td>czas końcowy w formacie <a class="el" href="structMIT.html">MIT</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd><a class="el" href="aquamat_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a> - timer powinien być włączony, <a class="el" href="aquamat_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a> - timer powinien być wyłączony </dd></dl>

</div>
</div>
<a class="anchor" id="a7435e59360b44d575bba33297a8c2655"></a><!-- doxytag: member="timers.h::timers_process" ref="a7435e59360b44d575bba33297a8c2655" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void timers_process </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Przetwarza po kolei wszystkie timery. </p>

</div>
</div>
<hr/><h2>Dokumentacja zmiennych</h2>
<a class="anchor" id="aff3c8ebb2c4bf09c591ab3333a71f326"></a><!-- doxytag: member="timers.h::timers" ref="aff3c8ebb2c4bf09c591ab3333a71f326" args="[TIMERS_NUM]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structTIMER.html">TIMER</a> <a class="el" href="timers_8h.html#aff3c8ebb2c4bf09c591ab3333a71f326">timers</a>[TIMERS_NUM]</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
